package com.tutor.lzm.function.authenticate.act;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.tutor.lzm.R;
import com.tutor.lzm.activity.BaseActivity;
import com.tutor.lzm.activity.TeacherDetailsAct;
import com.tutor.lzm.function.authenticate.fragment.AuditFailureFragment;
import com.tutor.lzm.function.authenticate.fragment.AuditPendingFragment;

/**
 * Created by zzgpc on 2017-9-23.
 * 认证教师——审核结果
 */
public class AuditResultsAct extends BaseActivity {
    public static void start(Context context, int status) {
        Intent intent = new Intent(context, AuditResultsAct.class);
        intent.putExtra("status", status);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_audit_result);
        int status = getIntent().getIntExtra("status", 1);
        Bundle bundle = new Bundle();
        bundle.putInt("status", status);
        initTitle("认证成为老师");
        if (status == 1) {
            AuditPendingFragment auditPendingFragment = new AuditPendingFragment();
            replaceFragment(auditPendingFragment);
        } else {
            AuditFailureFragment auditFailureFragment = new AuditFailureFragment();
            replaceFragment(auditFailureFragment);
        }


//        AuditFailureFragment auditFailureFragment = new AuditFailureFragment();
//        replaceFragment(auditFailureFragment);

    }
}
